<%@include file="_header.jspf" %>
<%@page import="com.spartancoder.accommodation.models.Reports" %>
<%@page import="com.spartancoder.accommodation.beans.UsageBean" %>
<h2>Grad de ocupare</h2>

<table>
    <thead>
        <tr>
            <th>ID</th>
            <th>Camin</th>
            <th>Grad utilizare</th>
        </tr>
    </thead>
    <tbody>
        <% for( UsageBean ub : Reports.usageStats() ) { %>
        <tr>
            <td><%=ub.getPlaceId()%></td>
            <td><%=ub.getPlace().getName()%></td>
            <td><%=ub.getProcent()%>%</td>
        </tr>
        <% } %>
    </tbody>
</table>

<%@include file="_footer.jspf" %>